import type { ErrorMessageMode } from '/#/axios';
import type { SeriesList } from './model/seriesModel';
import type { GameId } from '/@/api/general/model/cardModel';
import { toolsHttp } from '/@/utils/http';

enum Api {
  SeriesList = '/app/card/get-series-list',
}

// 获取系列
export function SeriesListApi(params: GameId, model: ErrorMessageMode = 'dialog') {
  return toolsHttp.post<SeriesList>(
    {
      url: Api.SeriesList,
      data: params,
    },
    {
      errorMessageMode: model,
    }
  );
}
